package com.andy.module.base

import com.andy.module.ext.dismissLoadingExt
import com.andy.module.ext.showLoadingExt
import me.hgj.jetpackmvvm.base.activity.BaseVmActivity
import com.andy.network.base.BaseViewModel

/**
 * @creator:LuoFan
 * @date:2022/5/26
 * @description:
 */
abstract class BaseActivity<VM : BaseViewModel> : BaseVmActivity<VM>() {
    /**
     * 创建liveData观察者
     */
    override fun createObserver() {}

    /**
     * 打开等待框
     */
    override fun showLoading(message: String) {
        showLoadingExt(message)
    }

    /**
     * 关闭等待框
     */
    override fun dismissLoading() {
        dismissLoadingExt()
    }
}